package com.heima.controller;


import com.heima.pojo.vo.TaskReportInfoVo;
import com.heima.service.ITbTaskService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 工单表 前端控制器
 * </p>
 *
 * @author AkiRinko
 * @since 2024-06-12
 */
@RestController
@RequestMapping("/api/task-service/task")
@RequiredArgsConstructor
public class TbTaskController {
    private final ITbTaskService tbTaskService;

    /**
     * 工单统计
     * @param start
     * @param end
     * @return
     */
    @GetMapping("/taskReportInfo/{start}/{end}")
    private List<TaskReportInfoVo> getReportInfo(@PathVariable String start,
                                                 @PathVariable String end){
        return tbTaskService.getReportInfo(start, end);
    }
}
